package controlador;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import vista.VentanaPrincipal;
import vista.VentanaMenu;
public class ControladorPrincipal{

	private VentanaMenu ventanaMenu;
	private VentanaPrincipal ventanaPrincipal;
	
	public ControladorPrincipal() {
		super();
		this.ventanaPrincipal = new VentanaPrincipal();
		this.ventanaPrincipal.setLocationRelativeTo(null);
		this.ventanaPrincipal.setVisible(true);	
	//	this.ventanaPrincipal.addListener(this);
		// TODO Auto-generated constructor stub
	}

	
	public void actionPerformed(ActionEvent e) {
		String actionCommand = e.getActionCommand();
		if (actionCommand.equals("Entrar")) {
			new ControladorVentanaMenu();
		}		
		else if (actionCommand.equals("Salir")) {
			System.exit(0);
				}
	}
	
	
	
	
}
